package com.mjk.common.ai.entity;

import com.mjk.common.base.model.BaseEntity;
import com.mjk.common.core.jdbc.annotation.ArcSharding;
import com.mjk.common.core.jdbc.annotation.Filed;
import com.mjk.common.core.jdbc.annotation.Id;
import com.mjk.common.core.jdbc.service.idgenerator.IdGenerateType;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 知识库点赞记录实体
 */
@Data
@ArcSharding(dataSource = "pg", table = "adi_knowledge_base_star")
public class KnowledgeBaseStar extends BaseEntity {

    @Id(type = IdGenerateType.AUTO_UUID)
    private Long id;

    @Filed(cloum = "create_time")
    private LocalDateTime createTime;

    @Filed(cloum = "update_time")
    private LocalDateTime updateTime;

    @Filed(cloum = "is_deleted", comment = "是否删除（0：未删除，1：已删除）")
    private Boolean isDeleted;

    @Filed(cloum = "kb_id", comment = "Knowledge base id")
    private Long kbId;

    @Filed(cloum = "kb_uuid", comment = "Knowledge base uuid")
    private String kbUuid;

    @Filed(cloum = "user_id", comment = "User id")
    private Long userId;

    @Filed(cloum = "user_uuid", comment = "User uuid")
    private String userUuid;

}
